Skip to content

Update specs to RSpec 2.14.8 syntax#58

Open
loganhasson wants to merge 1 commit intosquare:masterfrom
loganhasson:master
Open

Update specs to RSpec 2.14.8 syntax#58
loganhasson wants to merge 1 commit intosquare:masterfrom
loganhasson:master

Conversation

@loganhasson
Copy link

This conversion is done by Transpec 1.13.1 with the following command:
transpec spec/fdoc/presenters spec/fdoc/endpoint_scaffold_spec.rb spec/fdoc/endpoint_spec.rb spec/fdoc/service_spec.rb spec/fdoc/spec_watcher_spec.rb

  • 83 conversions
    from: obj.should
    to: expect(obj).to
  • 40 conversions
    from: == expected
    to: eq(expected)
  • 10 conversions
    from: obj.should_receive(:message)
    to: expect(obj).to receive(:message)
  • 8 conversions
    from: obj.should have(n).response_codes
    to: expect(obj.response_codes.size).to eq(n)
  • 7 conversions
    from: obj.should have(n).keys
    to: expect(obj.keys.size).to eq(n)
  • 5 conversions
    from: obj.should_not
    to: expect(obj).not_to
  • 2 conversions
    from: obj.stub(:message)
    to: allow(obj).to receive(:message)
  • 1 conversion
    from: =~ [1, 2]
    to: match_array([1, 2])
  • 1 conversion
    from: its(:attr) { }
    to: describe '#attr' do subject { super().attr }; it { } end

This conversion is done by Transpec 1.13.1 with the following command:
    transpec spec/fdoc/presenters spec/fdoc/endpoint_scaffold_spec.rb spec/fdoc/endpoint_spec.rb spec/fdoc/service_spec.rb spec/fdoc/spec_watcher_spec.rb

* 83 conversions
    from: obj.should
      to: expect(obj).to

* 40 conversions
    from: == expected
      to: eq(expected)

* 10 conversions
    from: obj.should_receive(:message)
      to: expect(obj).to receive(:message)

* 8 conversions
    from: obj.should have(n).response_codes
      to: expect(obj.response_codes.size).to eq(n)

* 7 conversions
    from: obj.should have(n).keys
      to: expect(obj.keys.size).to eq(n)

* 5 conversions
    from: obj.should_not
      to: expect(obj).not_to

* 2 conversions
    from: obj.stub(:message)
      to: allow(obj).to receive(:message)

* 1 conversion
    from: =~ [1, 2]
      to: match_array([1, 2])

* 1 conversion
    from: its(:attr) { }
      to: describe '#attr' do subject { super().attr }; it { } end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant